package com.example.demo.mapper;

import com.example.demo.entity.RoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleMapper {

    public String getRoleName();
    public RoleEntity getRoleById(@Param("id") int id);
    public int deleteRoleById(@Param("id") int id);
    public List<RoleEntity> rollList();
    public int addRole(RoleEntity user);
}
